using System;
using System.Collections.Generic;
using System.Text;

namespace CodeFactory.Library
{
    public static class LibraryMessageBox
    {
        public static void ShowErrorAndExit(string title, string errorString)
        {
            ShowError(title, errorString);
            System.Environment.Exit(-1);
        }

        public static void ShowError(string title, string errorString)
        {
            System.Windows.Forms.MessageBox.Show(errorString, title, System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
        }
    }
}
